package controllers

import (
	beego "github.com/beego/beego/v2/server/web"
	"ocane/models"
)

type BannerImageController struct {
	beego.Controller
}

func (this *BannerImageController) Get(){
	getString := this.GetString("bannerType")
	bannerList := models.GetBannerListByType(getString)
	this.Data["json"] = models.Result{Code: 200,Data: bannerList}
	this.ServeJSON()
}
